From 933dcf13e1ef9c7ef51c58cd7b5747310a3bbd86 Mon Sep 17 00:00:00 2001 From: "ach61@labyrinth.cl.cam.ac.uk" Date: Fri, 13 Feb 2004 09:47:30 +0000 Subject: [PATCH] bitkeeper revision 1.723 (402c9d32Wi_CDhKbGEWsHmH2qb2VfQ) fix makefile for nsplitd --- tools/Makefile | 1 + tools/nsplitd/Makefile | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index a2bf548d9f..cf8b9fc0fa 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -40,4 +40,5 @@ clean: $(MAKE) -C xc clean $(MAKE) -C misc clean $(MAKE) -C examples clean + $(MAKE) -C nsplitd clean diff --git a/tools/nsplitd/Makefile b/tools/nsplitd/Makefile index 4f59075eb2..661f750ce0 100644 --- a/tools/nsplitd/Makefile +++ b/tools/nsplitd/Makefile @@ -1,11 +1,25 @@ -ROOT = .. +CC = gcc +CFLAGS = -Wall -g -O3 CFILES = $(wildcard *.c) +HDRS = $(wildcard *.h) +OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) + INSTALL_BINS := nsplitd -include $(ROOT)/mk/rules.mk +all: nsplitd nsplitd: $(OBJS) $(CC) $(CFLAGS) -o nsplitd $(OBJS) +install: all + +dist: all + +clean: + $(RM) *.o $(INSTALL_BINS) + + +%.o: %.c $(HDRS) Makefile + $(CC) $(CFLAGS) -c -o $@ $< -- 2.30.2